package com.xian.cloud;

import com.xian.cloud.config.TCPServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class CloudNettyServerApplication {

	public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(CloudNettyServerApplication.class, args);
        TCPServer tcpServer = context.getBean(TCPServer.class);
        try {
            tcpServer.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}

